#include "led.h"
//LED_STA -->PB5
 
 
void LED_Init(void) {
	stc_port_init_t stcPortInit;


	PORT_Unlock();
	M4_PORT->PSPCR  = 0x03u;
	PORT_Lock();


	MEM_ZERO_STRUCT(stcPortInit);

	stcPortInit.enPinMode = Pin_Mode_Out;
	stcPortInit.enExInt = Disable;
	stcPortInit.enPullUp = Enable;

	PORT_Init(LED_STA_PORT, LED_STA_PIN, &stcPortInit);

	LED_Off();
}


void LED_On(void)
{
	PORT_ResetBits(LED_STA_PORT, LED_STA_PIN);
}

void LED_Off(void)
{
	PORT_SetBits(LED_STA_PORT, LED_STA_PIN);
}

void LED_Tog(void)
{
	PORT_Toggle(LED_STA_PORT, LED_STA_PIN);
}



